<?php
require 'Home/ViewModel.php';
class Controller{
	protected $model;
	protected $view;
	function __Construct(){
		$c = isset($_GET['c'])?$_GET['c']:'index';
		$m = isset($_GET['m'])?$_GET['m']:'index';
		$this->view = new ViewModel($c.'/'.$m);
	}
	function display() {
		$this->view->display();
	}
	function assign($variable, $value) {
		$this->view->assign($variable, $value);
	}
}
?>